{% spaceless %}
{% if wrap_label or widget.wrap_label %}
  {% with attr_id=widget.attrs.id|stringformat:'for="%s",' %}
    <label class="app {{ widget.compat_app_short }}" {{ widget.attrs.id|yesno:attr_id }}>
        {% include "django/forms/widgets/input.html" %}{{ widget.label }}</label>
  {% endwith %}
{% else %}
    {% include "django/forms/widgets/input.html" %}
{% endif %}
{% endspaceless %}
